<?php
$image = tmpfile();

var_dump(imagefilter($image, IMG_FILTER_NEGATE));
?>
